#!/bin/bash
export PATH=/root/.opam/system/bin:/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin:/usr/lib/jvm/jdk-11/bin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/usr/games:/usr/local/games:/snap/bin:/opt/RISCV/riscv/bin:/opt/RISCV/riscv/bin:/opt/RISCV/riscv/bin

cd task1-2/judge

chmod +x ./koba

#./koba ../src/step2.sy -o ./step2.s
arm-linux-gnueabihf-gcc -S ../src/main.c -o main.s
arm-linux-gnueabihf-gcc -c ../src/step2.s main.s -o step2.arm
qemu-arm -L /usr/arm-linux-gnueabihf/ ./step2.arm 
echo $?
